import Vue from "vue";
import VueRouter from "vue-router";
import Page from "../components/Page";
// import Input from "../components/input/Input";
import History from "../components/input/History";
import Message from "../components/input/Message";
import Newweek from "../components/Subpage/Newweek";
import Baby from "../components/Baby";
import List from "../components/Subpage/List";
import Superhot from "../components/Subpage/Superhot";
import Carousel from "../components/Subpage/Carousel";
import Powdered from '../components/Subpage/Powdered';
import Mustlist from '../components/Subpage/Mustlist';

import Leaflets1 from "../components/zfc/com/Fl/Leaflets/Leaflets1";
import Dhw from "../components/zfc/com/Dhw/Dhw";
import Fl from "../components/zfc/com/Fl/Fl";
import DhwSpInfo from "../components/zfc/com/Dhw/DhwSpInfo";
import DhwBrandInfo from "../components/zfc/com/Dhw/DhwBrandInfo";
import DhwXd from "../components/zfc/com/Dhw/DhwXd";
import DhwXdInfo from "../components/zfc/com/Dhw/DhwXdInfo";
import UserLogin from "../components/zfc/com/user/UserLogin";
import Gwc from "../components/zfc/com/Gwc/Gwc";

Vue.use(VueRouter);

let router = new VueRouter({
  routes: [{
      name: "Page",
      path: "/",
      component: Page,
    },
    {
      name: "Leaflets1",
      path: "/leaflets1",
      component: Leaflets1,
    },
    {
      name: "Fl",
      path: "/fl",
      component: Fl,
    },
    {
      name: "Dhw",
      path: "/dhw",
      component: Dhw,
    },
    {
      name: "DhwSpInfo",
      path: "/dhwspinfo",
      component: DhwSpInfo,
    },
    // 历史记录
    {
      name: "History",
      path: "/History",
      component: History,
    },
    // 消息中心
    {
      name: "Message",
      path: "/Message",
      component: Message,
    },
    // 本周新品
    {
      name: "Newweek",
      path: "/Newweek",
      component: Newweek,
    },
    // 母婴页面
    {
      name: "Baby",
      path: "/Baby",
      component: Baby,
    },
    // 必买清单
    {
      name: "List",
      path: "/List",
      component: List,
    },
    // 超值热卖
    {
      name: "Superhot",
      path: "/Superhot",
      component: Superhot,
    },
    // 轮播图
    {
      name: "Carousel",
      path: "/Carousel",
      component: Carousel,
    },
    {
      name: "DhwBrandInfo",
      path: "/dhwbrandinfo",
      component: DhwBrandInfo,
    },
    {
      name: "UserLogin",
      path: "/userlogin",
      component: UserLogin,
    },
    // 奶粉
    {
      name: "Powdered",
      path: "/Powdered",
      component: Powdered,
    },
    {
      name: "DhwXd",
      path: "/dhwxd",
      component: DhwXd,
    },
    {
      name: "DhwXdInfo",
      path: "/dhwxdinfo",
      component: DhwXdInfo,
    },
    {
      name: "Gwc",
      path: "/gwc",
      component: Gwc,
    },
    // 清单详情
    {
      name: "Mustlist",
      path: "/Mustlist",
      component: Mustlist,
    },
  ],
});

export default router;